package com.healthyeating.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.healthyeating.common.annotation.Excel;
import com.healthyeating.common.core.domain.BaseEntity;

/**
 * 成分列表对象 tb_nutrition
 * 
 * @author 段奇乐
 * @date 2025-01-03
 */
public class Nutrition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 营养表主键id，自增 */
    private Long nutritionId;

    /** 营养名称 */
    @Excel(name = "营养名称")
    private String nutritionName;

    /** 营养成分 */
    @Excel(name = "营养成分")
    private Double nutritionNrv;

    /** 营养成分单位 */
    @Excel(name = "营养成分单位")
    private String nutritionUnit;

    public void setNutritionId(Long nutritionId) 
    {
        this.nutritionId = nutritionId;
    }

    public Long getNutritionId() 
    {
        return nutritionId;
    }
    public void setNutritionName(String nutritionName) 
    {
        this.nutritionName = nutritionName;
    }

    public String getNutritionName() 
    {
        return nutritionName;
    }
    public void setNutritionNrv(Double nutritionNrv) 
    {
        this.nutritionNrv = nutritionNrv;
    }

    public Double getNutritionNrv() 
    {
        return nutritionNrv;
    }
    public void setNutritionUnit(String nutritionUnit) 
    {
        this.nutritionUnit = nutritionUnit;
    }

    public String getNutritionUnit() 
    {
        return nutritionUnit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("nutritionId", getNutritionId())
            .append("nutritionName", getNutritionName())
            .append("nutritionNrv", getNutritionNrv())
            .append("nutritionUnit", getNutritionUnit())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
